package model

type WeChatGroupUser struct {
	Id               int     `json:"id" from:"id" gorm:"primarykey;AUTO_INCREMENT"`
	Gid              int     `json:"gid" from:"gid" gorm:"column:gid;comment:微信群id;type:int"`
	WxUserId         string  `json:"wx_user_id" from:"wx_user_id" gorm:"column:wx_user_id;comment:微信用户唯一标识"`
	Name             string  `json:"name" from:"name" gorm:"column:name;comment:用户名;type:varchar(30)"`
	SumScore         float64 `json:"sum_score" from:"sum_score" gorm:"column:sum_score;comment:总分数"`
	SystemScore      float64 `json:"system_score" from:"system_score" gorm:"column:system_score;comment:系统分数"`
	RunWater         float64 `json:"run_water" from:"run_water" gorm:"column:run_water;comment:流水"`
	ReturnedWater    float64 `json:"returned_water" from:"returned_water" gorm:"column:returned_water;comment:回水"`
	NotReturnedWater float64 `json:"not_returned_water" from:"not_returned_water" gorm:"column:not_returned_water;comment:未回水"`
	UpwardDivision   float64 `json:"upward_division" from:"upward_division" gorm:"column:upward_division;comment:上分"`
	LowerDivision    float64 `json:"lower_division" from:"lower_division" gorm:"column:lower_division;comment:下分"`
}

// TableName  we_chat_group_user
func (WeChatGroupUser) TableName() string {
	return "we_chat_group_user"
}
